package cn.gbase.jiangsu.data.transfer.service;

import java.util.Date;

import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.random.R;
import org.nutz.service.IdEntityService;

import cn.gbase.jiangsu.data.transfer.bean.SystemLog;

@IocBean(args = { "refer:dao" })
public class SystemLogService extends IdEntityService<SystemLog> {

	public SystemLogService() {
		super();
	}

	public SystemLogService(Dao dao) {
		super(dao);
	}

	/**
	 * 添加系统日志.
	 * 
	 * @param Supplier
	 * @return
	 */
	public boolean addSystemLog(SystemLog logger) {
		logger.setCreateDate(new Date());
//		logger.setId(R.UU64());
		// 添加供应商日志
		logger.setId(R.UU64());
		this.dao().insert(logger);
		return true;
	}

}
